public class MinHeap {
    private int[] heap;
    private int capacity;
    private int size;

    public MinHeap(int capacity){
        this.capacity = capacity;
        this.heap  = new int[capacity];
        this.size = 0;
    }

    private int parent(int i){
        return (i-1)/2;
    }

    private int leftChild(int i) {
        return 2 * i + 1;
    }

    private int rightChild(int i) {
        return 2 * i + 2;
    }

    private void swap(int i, int j) {
        int temp = heap[i];
        heap[i] = heap[j];
        heap[j] = temp;
    }

    private void heapIfyUp(int i) {

    }

}
